<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../util.js"></script>;
</head>
<body>
<button onclick="openDialog()">点我</button>


<script>s
    function openDialog() {
        var date= new Date();
        var obj = new Object();
        obj.name="i5tt";
        console.log("打开窗口于:"+date.getDateStr());
        openSelectWindow("selectMap.html","test",obj,callback);
    }

    function callback(data) {
        var date= new Date();
        console.log("窗口关闭于:"+date.getDateStr(),data);
        alert("选中"+data.lat);
    }
</script>
</body>
</html>